﻿@model Forums.Domain.User

@{
	ViewBag.Title = "Create";
	Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
	@Html.ValidationSummary(true)
	<fieldset>
		<legend>User</legend>
		@*
		<div class="editor-label">
			@Html.LabelFor(model => model.UserId)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.UserId)
			@Html.ValidationMessageFor(model => model.UserId)
		</div>
		*@
		
		<div class="editor-label">
			@Html.LabelFor(model => model.FirstName)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.FirstName)
			@Html.ValidationMessageFor(model => model.FirstName)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.LastName)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.LastName)
			@Html.ValidationMessageFor(model => model.LastName)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.UserName)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.UserName)
			@Html.ValidationMessageFor(model => model.UserName)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.UserPwd)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.UserPwd)			
			@Html.ValidationMessageFor(model => model.UserPwd)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.Email)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Email)
			@Html.ValidationMessageFor(model => model.Email)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.City)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.City)
			@Html.ValidationMessageFor(model => model.City)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.Country)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Country)
			@Html.ValidationMessageFor(model => model.Country)
		</div>
		
		<div class="editor-label">
			@Html.LabelFor(model => model.TimezoneCode)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.TimezoneCode)
			@Html.ValidationMessageFor(model => model.TimezoneCode)
		</div>
		
		<p>
			<input type="submit" value="Create"/>
		</p>
	</fieldset>
}
<div>
	@Html.ActionLink("Back", "Index")
</div>
